package com.hgwz;

public class Hero {

    private String id;
    private String name;
    private int hp; //血量
    private int power;

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getHp() {
        return hp;
    }

    public int getPower() {
        return power;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public void setPower(int power) {
        this.power = power;
    }

    public Hero(String id, String name, int hp, int power){
        this.id = id;
        this.name = name;
        this.hp = hp;
        this.power = power;
    }

    public String toString(){
        return "Hero {" + "id=" + id + ", name = " + name + ", hp = " + hp + ", power = " + power + "}";
    }
}
